This forum is closed to new posts and
responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:
On the web, we are trying to have a document open up in a dojo dijit dialog box in edit mode. This was an easy enough task in read mode but it has proven to be more difficult in edit mode.
We can get the document to open in edit mode but none of the buttons do anything when clicked. We've even tried to put a simple client side alert and that doesn't fire.
We've searched in here and saw that others have had similar problems but their posts went unanswered. On the dojo support site we also saw references to focus issues that are supposed to be fixed in 1.5 - not sure if that is part of the problem or not.
Here is the code as it sits in a data column. We have a custom control that sits in a div and that opens just fine. Once again, the problem is that none of the buttons in this CC do anything when opened up in the dijit box.
//first check if it's there so we don't create a duplicate
var dialog = dijit.byId('dialogId');
if (dialog) { dialog.destroyRecursive(); }
// create a "hidden" Dialog till calling show it
var dialog = new dijit.Dialog({
title:"Field Profile",
id: "dialogId",
refreshOnShow: true,
preventCache: true
});
// this function creates the dialog box and moves its content inside the form tag.
var xdialog = dojo.byId("dialogId");
xdialog.parentNode.removeChild(xdialog);
var form = document.forms[0];
form.appendChild(xdialog);